package com.payment.util;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: AbstractTrans
 * @Description:
 * @author: fengcheng
 * @date: 2021/03/25
 */
@Getter
public enum TransCodeEnum {
    TRANS_PAY("transPay", "三方支付"), TRANS_REFUND("transRefund", "三方退款"),
 ;

    TransCodeEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    private static final Map<String, TransCodeEnum> ENUM_MAP = new HashMap<>(TransCodeEnum.values().length);
    static {
        for (TransCodeEnum transCodeEnum : TransCodeEnum.values()) {
            ENUM_MAP.put(transCodeEnum.getCode(), transCodeEnum);
        }
    }

    private String code;
    private String text;

    public String getCode() {
        return this.code;
    }

    public String getText() {
        return this.text;
    }


}
